Copy Attributes with access rights

Does any know how to copy access rights for attributes when you import the attribute from another module?
vppatel - Thu May 06 11:43:19 EDT 2010